package com.cedric.yixianpai.game.interfaces;

import java.io.Serializable;

public abstract class Skill implements Serializable {
    private String title;
    private String affect;
    private int period;//时期
    private String sect;//门派
    private boolean special;//独属

    public Skill(String title, String affect, int period, String sect, boolean special) {
        this.title = title;
        this.affect = affect;
        this.period = period;
        this.sect = sect;
        this.special = special;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAffect() {
        return affect;
    }

    public void setAffect(String affect) {
        this.affect = affect;
    }

    public int getPeriod() {
        return period;
    }

    public void setPeriod(int period) {
        this.period = period;
    }

    public String getSect() {
        return sect;
    }

    public void setSect(String sect) {
        this.sect = sect;
    }

    public boolean isSpecial() {
        return special;
    }

    public void setSpecial(boolean special) {
        this.special = special;
    }

    public void use(){
        System.out.println(this.title+":"+this.affect);
    }
}
